<?php
// +----------------------------------------------------------------------
// | sfadmin - Suifeng Administration
// +----------------------------------------------------------------------
// | Copyright (c) 2017-2020 http://suifeng.tech All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: suifeng <1787585212@qq.com>
// +----------------------------------------------------------------------

if (preg_match('/^admin\.(.*)$/', $_SERVER['HTTP_HOST'])) {
    require_once 'admin.php';
} else if (preg_match('/^wx\.(.*)$/', $_SERVER['HTTP_HOST'])) {
    require_once 'wechat.php';
} else if (preg_match('/^m\.(.*)$/', $_SERVER['HTTP_HOST'])) {
    require_once 'mobile.php';
} else {
    require_once 'front.php';
}